﻿
// Condition: 1. Write a method that asks the user for his name and prints “Hello, <name>” (for example, “Hello, Peter!”). Write a program to test this method.

using System;


class Method_Name
{
    // creat method Name
    static void Name()
    {
        Console.WriteLine("What is your name?");
        string name = Console.ReadLine();
        Console.WriteLine("Hello, {0}!",name);
    }

    static void Main(string[] args)
    {
        // call define Method Name
        Name();
    }
}

